;** Analyzed by http://lhammonds.game-host.org/obmm/tools_obmm_analyzer.asp **
If VersionLessThan 0.9.7
   Message "This mod must be installed by OBMM version 0.9.7 or later to prevent script errors."
   FatalError
EndIf

SelectWithDescriptions "Lost Paladin - Choose Helmet EGM" "No Helmet EGM (default)" "This option will not use the custom EGM files which keeps the helmet in it's original shape and does not conform to the shape of the players head.  This is recommended for most characters that are not Argonian or Khajiit." "Beast Race Helmet EGM" "This option uses the custom EGM file that allows the custom helmets to conform to the shape of the players head and thus, reduce clipping problems with Argonian and Khajiit races." "Human Helmet EGM" "This option uses the custom EGM file that allows the custom helmets to conform to the shape of the players head and thus, reduce clipping problems with Human-like characters with odd-shaped heads."
Case No Helmet EGM (default)
  ;** Do nothing but leave the EGM files in case player wants to rename them later. **
  Break
Case Beast Race Helmet EGM
  CopyDataFile "Meshes\\Armor\\LPotD\\Wrath\\HelmetBeast.egm" "Meshes\\Armor\\LPotD\\Wrath\\rhelmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Wrath\\HelmetBeast.egm" "Meshes\\Armor\\LPotD\\Wrath\\helmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Fury\\HelmetBeast.egm"  "Meshes\\Armor\\LPotD\\Fury\\rhelmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Fury\\HelmetBeast.egm"  "Meshes\\Armor\\LPotD\\Fury\\helmet.egm"
  Break
Case Human Helmet EGM
  CopyDataFile "Meshes\\Armor\\LPotD\\Wrath\\HelmetHuman.egm" "Meshes\\Armor\\LPotD\\Wrath\\rhelmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Wrath\\HelmetHuman.egm" "Meshes\\Armor\\LPotD\\Wrath\\helmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Fury\\HelmetHuman.egm"  "Meshes\\Armor\\LPotD\\Fury\\rhelmet.egm"
  CopyDataFile "Meshes\\Armor\\LPotD\\Fury\\HelmetHuman.egm"  "Meshes\\Armor\\LPotD\\Fury\\helmet.egm"
  Break
Case None
EndSelect

If DataFileExists "DLCHorseArmor.esp"
  SelectWithPreview "Paladin Order Horse Armor" "Replace Steel with Paladin Armor" "Lost Paladins of the Divines HorseArmor.jpg" "Do Not Use Horse Armor Replacer" "None"
    Case Replace Steel with Paladin Armor
      InstallDataFile "textures\\Creatures\\Horse\\armorsteel.dds"
      InstallDataFile "textures\\Creatures\\Horse\\armorsteel_n.dds"
      Break
    Case Do Not Use Horse Armor Replacer
      DontInstallDataFile "textures\\Creatures\\Horse\\armorsteel.dds"
      DontInstallDataFile "textures\\Creatures\\Horse\\armorsteel_n.dds"
      Break
  EndSelect
Else
  DontInstallDataFile "textures\\Creatures\\Horse\\armorsteel.dds"
  DontInstallDataFile "textures\\Creatures\\Horse\\armorsteel_n.dds"
EndIf

DontInstallDataFile "Lost Paladins of the Divines HorseArmor.jpg"
